<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="/common/common.jsp"%>
<%@ include file="/common/taglibs.jsp"%>

<html>
<head>
<script src="<c:url value='/scripts/prototype.js'/>" type="text/javascript"></script>
<script src="<c:url value='/scripts/common.js'/>" type="text/javascript"></script>
<link href="<c:url value='/widgets/dhtmlxtree/styles/dhtmlxtree.css'/>" type="text/css" rel="stylesheet">
<script src="<c:url value='/widgets/dhtmlxtree/scripts/dhtmlxcommon.js'/>" type="text/javascript"></script>
<script src="<c:url value='/widgets/dhtmlxtree/scripts/dhtmlxtree.js'/>" type="text/javascript"></script>
<style type="text/css">
.menu {
	font-size:9pt;
}
</style>	
<script>
var tree;

window.onload= function(){	
	tree=new dhtmlXTreeObject("treeboxbox_tree0","98%","98%",0);
	tree.setImagePath("widgets/dhtmlxtree/images/");
	tree.setOnClickHandler(menuOnClick);
	tree.loadXMLString($("xmlMenuTree").innerHTML.toString());
}
function menuOnClick(nodeId)
{	
	var href = tree.getItemTooltip(nodeId);	
	if(!href.isEmpty())
		window.parent.main.location = href;
}
</script>
</head>
<body bgcolor="#F2FEF4" >   
<xml id="xmlMenuTree">
<tree id="0">
	<item text="系统管理" id="SYSTEM" open="1">
			<%if(loginPo.hasRight("S001")) {%>
				<item text="用户管理" id="operator" tooltip="operator.do?method=search"></item>
			<%} %>	
			<%if(loginPo.hasRight("S002")) {%>	
				<item text="角色管理" id="role" tooltip="role.do?method=search"></item>
			<%} %>
			<%if(loginPo.hasRight("S003")) {%>
				<item text="角色分配" id="oprole" tooltip="operator.do?method=searchrole"></item>
			<%} %>	
			<%if(loginPo.hasRight("S004")) {%>
				<item text="权限分配" id="permission" tooltip="role.do?method=searchroleper"></item>	
			<%} %>	
			<%if(loginPo.hasRight("S005")) {%>
				<item text="字典管理" id="dict" tooltip="dictParam.do?method=search"></item>	
			<%} %>	
			<%if(loginPo.hasRight("S006")) {%>
				<item text="系统配置" id="config" tooltip="systeminfo.do?method=search"></item>	
			<%} %>	
			<%if(loginPo.hasRight("S007")) {%>
				<item text="日志查询" id="log" tooltip="opLog.do?method=search"></item>	
			<%} %>	
			<%if(loginPo.hasRight("S008")) {%>
				<item text="部门管理" id="deparment" tooltip="department.do?method=search"></item>	
			<%} %>
			<%if(loginPo.hasRight("S101")) {%>
				<item text="公告管理" id="publicconfig" tooltip="affiche.do?method=search"></item>	
			<%} %>
			<%if(loginPo.hasRight("S102")) {%>
				<item text="站内短信管理" id="message" tooltip=""></item>	
			<%} %>		
	</item>
</tree> 
</xml> 
<div id="treeboxbox_tree0" oncontextmenu="return false"></div>
</body>
</html>